package com.example.warehouse.dao.persist.mapper;

import com.example.warehouse.bus.dao.persist.mapper.BusBreakageMapper;
import com.example.warehouse.bus.dao.persist.mapper.BusRepertoryMapper;
import com.example.warehouse.bus.pojo.entity.BusBreakage;
import com.example.warehouse.bus.pojo.param.BusBreakageQueryParam;
import com.example.warehouse.bus.pojo.vo.BusRepertoryInfoVo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
public class RepertoryMapperText {
    @Resource
    private BusRepertoryMapper brm;
    @Resource
    private BusBreakageMapper bbm;
    @Test
    void textFuzzyQuery()
    {
        List<BusRepertoryInfoVo> list =brm.fuzzyQueryList("苹");
        for (BusRepertoryInfoVo busRepertoryInfoVo : list) {
            System.out.println(busRepertoryInfoVo);
        }

    }
    @Test
    void textFuzzyQuery1()
    {
        BusBreakageQueryParam busBreakageQueryParam=new BusBreakageQueryParam();
        busBreakageQueryParam.setGoodsName("");
        List<BusBreakage> list = bbm.findByKeywordAndTypeFuzzyQuery(busBreakageQueryParam);
        for (BusBreakage busBreakage : list) {
            System.out.println(busBreakage);
        }
    }
}
